Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
load-module
Advanced tools
Node's require
with a few extra features:
Example
> const loadModule = require('load-module')
> loadModule('react-dom')
> loadModule('dom', { prefix: 'react-' })
> loadModule('something.js', { paths: '.' })
> loadModule('something.js', { paths: [ '.', '~/my-modules' ] })
Kind: Exported function
Param | Type | Description |
---|---|---|
request | string | The module name, directory or file to load. |
[options] | object | |
[options.paths] | string | Array.<string> | One or more additional directories in which to search for modules. For each path specified, both the path itself and ${path}/node_modules will be searched. |
[options.prefix] | string | Attempt to load the given module name with this prefix. Only useful where request is a module name. |
© 2017-20 Lloyd Brookes <75pound@gmail.com>.
Tested by test-runner. Documented by jsdoc-to-markdown.
FAQs
Standard dynamic imports with a few extra features
The npm package load-module receives a total of 97,717 weekly downloads. As such, load-module popularity was classified as popular.
We found that load-module demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.